import plugin from '../../lib/plugins/plugin.js'
import cfg from '../../lib/config/config.js'
/*
戳一戳会发送文字同时也会发送对应的语音！
但是发送语音需要ffmpeg
如果你不会装ffmpeg
Linux系统可以用脚本解决
bash <(curl -sL https://gitee.com/haanxuan/yzai-pd/raw/master/Xf.sh)
Windows系统可以看教程
https://hanxuan.cc/blogs/ffmpeg.html
*/
const _path = process.cwd();
/*
首发群453694434
本插件免费公开外传！
禁止任何交易行为
如果你是交易获得
请及时退款并举报发布者！
*/

export class example extends plugin {
  constructor () {
    super({
      /** 功能名称 */
      name: '可莉语音戳一戳',
      /** 功能描述 */
      dsc: '简单开发示例',
      /** https://oicqjs.github.io/oicq/#events */
      event: 'notice.group.poke',
      /** 优先级，数字越小等级越高 */
      priority: -114514,
      rule: [
        {
          /** 命令正则匹配 */
          reg: '.*',
          /** 执行方法 */
          fnc: 'chuochuo'
        }
      ]
    })
  }
 
  

  async chuochuo (e) {
    

    if(e.target_id == cfg.qq){
      
    /*这个是一个随机数*/
    let num = Math.ceil(Math.random() * 50);
    /*
    前面的数字就是对应的触发数字，随机到什么数字就触发对应的发送内容
    音频怎么获取可以看B站教程
    【超简单之一键下载原神角色语音,你还在录屏提取音频吗?】 https://www.bilibili.com/video/BV1a34y1f7f8/?share_source=copy_web&vd_source=637815ec2b4a6ad7b556be6113eea381
    如果被删除了就自己找找吧，挺简单的
    复制粘贴就可以自己写想要的角色戳一戳了
    */
 if(num == 1){
  e.reply(`旅行者好呀~我是可莉`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/9f/icnus2c6r8piuvz8k9uz2i5tt0w9ydb.ogg")
  e.reply(msg)
}
if(num == 2){
  e.reply(`早安！带可莉出去玩吧！我们一起来冒险！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a2/iilujuoh67ogl6nivmxh6s86xc0oqdz.ogg")
  e.reply(msg)
}
if(num == 3){
  e.reply(`午饭时间到了！啊…吃什么呢？我来看看《提瓦特游览指南》…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/9c/eg8twp9wr1o5xma59npbsunpm6d65za.ogg")
  e.reply(msg)
}
if(num == 4){
  e.reply(`晚上好！拜托你也帮我跟霍夫曼先生说说吧，可莉不是小孩子了，可莉晚上也可以出去玩——带我出去玩——`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/33/8ndk3q9u2c0s5yei53t04c4rj8mskt8.ogg")
  e.reply(msg)
}
if(num == 5){
  e.reply(`虽然出来玩的时候说不想回家，但天黑以后的旷野，不认识路…拜、拜托你回去的时候，把我也送回家好不好…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a3/sj1wlv0maflb94ddlythq3ajlv1bpw6.ogg")
  e.reply(msg)
}
if(num == 6){
  e.reply(`可莉今天又勇敢地抓到了花纹奇怪的蜥蜴！从没见过这种图案，你要看看吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8c/0nsgo6m9vxrxeuufw1mf1kptbo3kt1v.ogg")
  e.reply(msg)
}
if(num == 7){
  e.reply(`要和可莉一起去炸鱼吗？虽然被抓住就是一整天的禁闭，但鱼很好吃，所以值得！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/4b/4ae86kju18be7etgop1mhw19a9w0gp8.ogg")
  e.reply(msg)
}
if(num == 8){
  e.reply(`「城里放炮禁闭室报到」、「炸弹伤人琴找上门」、「放火烧山可莉完蛋」——这就是可莉在骑士团的生存守则。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/43/5m4do8haz040fdt5vxcs6junwqjcqkl.ogg")
  e.reply(msg)
}
if(num == 9){
  e.reply(`哼哼哼，这次的炸弹可是防水的。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/3d/86onctrzvgf88r2036d7uyhkwlivsx1.ogg")
  e.reply(msg)
}
if(num == 10){
  e.reply(`啊！什么东西爆炸了？！…哦，是打雷啊。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/0c/mse25h1jhnhsy32373w8wkc29lzfprr.ogg")
  e.reply(msg)
}
if(num == 11){
  e.reply(`风神保佑，把可莉的炸弹往合适的地方吹吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/1b/nt4jbt2kbp57zpvzi2hwija7aab8zjc.ogg")
  e.reply(msg)
}
if(num == 12){
  e.reply(`呜…这次居然炸歪了大风车的叶片…真对不起！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/4b/k750h4rt435tlqh5gak0rnb0c592u3y.ogg")
  e.reply(msg)
}
if(num == 13){
  e.reply(`我，我还挺会做手工的，请让我帮你们重新做一个…什么？禁止雇佣童工？呜…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a8/7ze8l3bf3g4i9onwbns10ywlvhh640f.ogg")
  e.reply(msg)
}
if(num == 14){
  e.reply(`我，我还挺会做手工的，请让我帮你们重新做一个…什么？禁止雇佣童工？呜…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a8/7ze8l3bf3g4i9onwbns10ywlvhh640f.ogg")
  e.reply(msg)
}
if(num == 15){
  e.reply(`呼呼…荣誉骑士，可莉作为「火花骑士」，可以说是你在西风骑士团的前辈喔？所以！所以…这次我闯的祸，能不能帮我隐瞒一下…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/0e/bz91c2owprob60vuhw1b3wf0nbb2g7j.ogg")
  e.reply(msg)
}
if(num == 16){
  e.reply(`不行！才九点，可莉今晚一定要撑到看完马戏团的午夜专场！你是可莉的玩伴吧！那就别想现在就把我送回家，略略略略…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/5b/tkzu9il0oprtkrmx15wlk13g50rdoek.ogg")
  e.reply(msg)
}
if(num == 17){
  e.reply(`不行！才九点，可莉今晚一定要撑到看完马戏团的午夜专场！你是可莉的玩伴吧！那就别想现在就把我送回家，略略略略…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/5b/tkzu9il0oprtkrmx15wlk13g50rdoek.ogg")
  e.reply(msg)
}
if(num == 18){
  e.reply(`这个小小的玻璃球，就代表了巴巴托斯大人对可莉的肯定吗…唔…究竟是认可了我的哪一部分呢？是自由吗？那以后要不要更自由地出去炸鱼，来回应巴巴托斯大人的期待呢…？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/7e/3t2sfdg6btor9vvjk2e4u9nbytjh6zv.ogg")
  e.reply(msg)
}
if(num == 19){
  e.reply(`可莉知道，骑士团的墙是不能炸的。虽然打通了能从禁闭室出去很方便，但凯亚哥哥说，这样做了以后，琴团长恐怕会让我再也见不到第二天的太阳…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/b1/h2edge9sbzbcv5dtemol2kzaank1bf5.ogg")
  e.reply(msg)
}
if(num == 20){
  e.reply(`每一只蜥蜴的花纹都是不同的，有些蜥蜴的尾巴干燥以后磨成粉，可以当做炸药的材料哦。这是阿贝多哥哥告诉我的事。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a1/6mkmc1lwgd5zbvv02eyk9hjit9i9c59.ogg")
  e.reply(msg)
}
if(num == 21){
  e.reply(`我们是朋友！雷泽努力对抗危机、保护可莉的样子，让人安心！…唔…虽然基本上都是我把危机带到他身边的…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/47/tj6nu9y9bg371mf4v0roac9zjmjlaqn.ogg")
  e.reply(msg)
}
if(num == 22){
  e.reply(`爸爸和妈妈都是全大陆有名的旅行家！妈妈写的《提瓦特游览指南》，有好多餐馆和旅店都很在意它的权威评价呢。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/db/241sy3u098qzoup1x6udjf3co21g6ku.ogg")
  e.reply(msg)
}
if(num == 23){
  e.reply(`凯亚哥哥是好人！《骑士团生存守则》就是凯亚哥哥帮可莉写的。可莉闯祸的时候，他也经常帮忙遮掩呢。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/02/505byu1ad5r78ta8mp7tgcpust7dxe1.ogg")
  e.reply(msg)
}
if(num == 24){
  e.reply(`安柏姐姐是好人！兔兔伯爵摸起来也是毛茸茸的，而且还会爆炸，太棒了！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/d9/1et37ivk1z635t6t1atmfsny94aohxy.ogg")
  e.reply(msg)
}
if(num == 25){
  e.reply(`琴团长是好人！虽然…有点可怕…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/1b/kr6y365kzuewspk8pj5qepoqo7blz7n.ogg")
  e.reply(msg)
}
if(num == 26){
  e.reply(`奇怪的大人，一直都是不太开心的样子。唔…为什么不喜欢笑呢？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/15/58voaq08w35jee98eipkbjzc8dswyjm.ogg")
  e.reply(msg)
}
if(num == 27){
  e.reply(`丽莎阿…丽莎姐姐是好人！每次可莉靠近她的工坊，她就会给可莉好吃的茶点…欸？说起来我想进她的工坊，好像一开始是想做新的炸药来着…？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/95/sjgrx86t1t5bwcuj1goomfoichmkhbk.ogg")
  e.reply(msg)
}
if(num == 28){
  e.reply(`班尼特哥哥是好人！和他一起冒险，可莉总能有更多收获！…虽然班尼特哥哥自己总是什么宝物都找不到，嗯…这是为什么呢？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/05/0046268t6fl5d00z7pbx0x4o79492go.ogg")
  e.reply(msg)
}
if(num == 29){
  e.reply(`迪奥娜姐姐是好人！「靠一己之力摧毁蒙德酒业」的想法好有趣，可莉也要用炸弹来帮忙！——呃，虽然不太懂什么叫做「蒙德酒业」，是怪物吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/34/0xkiznapwmw5dcpalkcv449lvtmpaqh.ogg")
  e.reply(msg)
}
if(num == 30){
  e.reply(`阿贝多哥哥跟可莉有个秘密的约定！要是可莉看到工坊门前挂着「实验进行中」的牌子，就要晚点再去找他。阿贝多哥哥不工作的时候，会很耐心地陪着可莉，所以可莉也会很耐心地等着的！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/70/o548hql5im3iuflepm6v8c6rkhc8imo.ogg")
  e.reply(msg)
}
if(num == 31){
  e.reply(`莫娜姐姐是好人！她每次找阿贝多哥哥和可莉玩的时候，都会说好多听不明白，但是很有趣的东西！可莉喜欢她来玩！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/f/f2/hjy8bmxr1mt31fslspfmk69ul641zag.ogg")
  e.reply(msg)
}
if(num == 32){
  e.reply(`砂糖姐姐是好人！她问我，想不想要一个会跑会跳的蹦蹦！嘿嘿嘿，当然想要了，我还想要好几百个，让蒙德的街道上，台阶上，广场上，全是蹦蹦！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/d9/3xqebc788s8uvlvp94zwebpegoe94nj.ogg")
  e.reply(msg)
}
if(num == 33){
  e.reply(`你好！你是来找可莉玩的吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/9c/9f9ihhctv2crwmfmxbhfxpe663ukrjj.ogg")
  e.reply(msg)
}
if(num == 34){
  e.reply(`是啊，这个炸弹是可莉最新改良的作品！你看我做得好不好？…呃——如果是在什么纵火现场发现的话，那就不是我做的，绝对不是。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a2/5ca0gre0ezqn9ek0vj5ou7ixeom4x3o.ogg")
  e.reply(msg)
}
if(num == 35){
  e.reply(`哎，虽然新炸药的配方，很多都是在被关禁闭的时候想出来的…但如果不被关禁闭的话就更好了…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/52/arq8ov33u1231mxtrol04aweww5adqs.ogg")
  e.reply(msg)
}
if(num == 36){
  e.reply(`这是嘟嘟可，是可莉很久以前就交到的好朋友。要记得它的名字哦，以后别叫它「挂在你包上的玩偶」啦。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/4a/nqzi0q1sym60gnnpw80ijlu1kf40von.ogg")
  e.reply(msg)
}
if(num == 37){
  e.reply(`谢谢你总是帮可莉解决麻烦！就用这串「可莉烤鱼」来报答你吧！——呃，其实鱼是直接在湖里就被炸弹烤熟了，不过这件事就和平时一样，假装不知道好了。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/f/ff/3vq4lrdctwigreznu8ucu2egpmcscft.ogg")
  e.reply(msg)
}
if(num == 38){
  e.reply(`可莉喜欢毛茸茸的东西。比如嘟嘟可、蒲公英，还有雷泽的头发。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/26/m64r94xovgxwltxu6pd4rwwxtcdbrsb.ogg")
  e.reply(msg)
}
if(num == 39){
  e.reply(`唉，你是好人，我是坏孩子…等我这次的禁闭结束、好好反省过以后，再来找你带我出去玩…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/42/jd2s0nwm9ngkqiynwojudrnabz89fx6.ogg")
  e.reply(msg)
}
if(num == 40){
  e.reply(`唉，你是好人，我是坏孩子…等我这次的禁闭结束、好好反省过以后，再来找你带我出去玩…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/42/jd2s0nwm9ngkqiynwojudrnabz89fx6.ogg")
  e.reply(msg)
}
if(num == 41){
  e.reply(`蒙德的鲈鱼是很好吃的，从果酒湖里抓到的尤其好吃！这可不是瞎说的，连妈妈也认同可莉的想法喔。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/b1/i3fwl9rkmew6nhch00g6o848f695zqy.ogg")
  e.reply(msg)
}
if(num == 42){
  e.reply(`讨厌蒙德蟹——什么蟹都讨厌——可莉要出去玩——不要坐在餐桌前慢慢剥壳——`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8d/dcerksmdzw6lqq17t76mu2q5155n431.ogg")
  e.reply(msg)
}
if(num == 43){
  e.reply(`好香好香！可莉已经吃到吃不下啦…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/b5/qhis1dce5ezlw6a2b4wssvfgmtrwqv8.mp3")
  e.reply(msg)
}
if(num == 44){
  e.reply(`今天也吃到了好吃的东西，可莉好开心！谢谢你！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/85/likcrqlkvj0buysxroa9p35emkncbc2.mp3")
  e.reply(msg)
}
if(num == 45){
  e.reply(`看上去很好吃，但吃起来不太方便…嘿嘿，你来帮帮可莉好不好！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/bb/dxpk0s291niyklf2km8f2lgh489bg3h.mp3")
  e.reply(msg)
}
if(num == 46){
  e.reply(`生日快乐！过生日很开心，你比可莉大，那过生日的次数一定比可莉多吧？可莉很羡慕！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/f/fb/mle2ipsmiq6xrp3ezmx7a6ykw6gfhev.ogg")
  e.reply(msg)
}
if(num == 47){
  e.reply(`嗯，新型炸弹研究完毕！趁琴团长发现之前，开溜！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/2f/1ddtarp1qs2sfrm79lu66jlls4i6fwj.ogg")
  e.reply(msg)
}
if(num == 48){
  e.reply(`又进步了一点！不过琴团长总是说：「进步是分内之事。」`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/dd/7evhd3z9tn3ryqz8qie6voaodl85hyb.ogg")
  e.reply(msg)
}
if(num == 49){
  e.reply(`谢谢你总是陪我一起收集研究用的材料！如果你想学习炸弹的制作方法，我也可以来教你哦。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/cd/ofk9kczoj6mkyb5drivj6tq02tsvxw6.ogg")
  e.reply(msg)
}
if(num == 50){
  e.reply(`很久以前，第一听到爆炸声的时候，我没有害怕…后来我才知道，大部分人不是这样的…不过，你也不害怕我的炸弹呢！嘿嘿，太好了，可莉果然交到了很好的朋友！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/08/eqpbfuluhcpfadwo1nxujf2g3ub80z8.mp3")
  e.reply(msg)
}
  return true
  }
}
}

